package com.spark.colliery.module.mine

import android.app.Activity
import android.content.Intent
import android.os.Bundle
import com.spark.colliery.R
import com.spark.common.BaseActivity
import com.spark.colliery.module.mine.fragment.ForgetWithIdFragment
import kotlinx.android.synthetic.main.act_forget_password.*

/**
 * forget password
 */
class ForgetPasswordActivity : BaseActivity() {
    companion object {
        fun actionStart(host: Activity) {
            val intent = Intent(host, ForgetPasswordActivity::class.java)
            host.startActivity(intent)
        }
    }

    override fun contentResId(): Int {
        return R.layout.act_forget_password
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        iv_back.setOnClickListener { finish() }

        supportFragmentManager.beginTransaction()
                .add(R.id.fl_content, ForgetWithIdFragment.newInstance())
                .commit()
    }
}
